package com.fg.cloud.manager.entry.product.vo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fg.cloud.common.convert.CustomBigDecimalSerialize;

/**
 * Description:商品规格信息Vo
 * @author around
 * @date 2017年8月20日下午1:36:00
 */
public class ProductSkuVo implements Serializable {

	private static final long serialVersionUID = 689126728005009714L;

	private Long id;
	
	private String productNumber;
	
	private String barcode;
	
	/** 库存数量 */
	private BigDecimal stock;
	
	/** 库存显示词条 */
	private String stockContent;
	
	/** 商品原价 */
	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal productPrice;
	
	/** 商品特价 */
	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal specialPrice;
	
	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal showPrice;// num * productPrice, 
	
	private Long unitId;
	
	private String unitName;
	
	private String productSpec;
	
	private Integer isDefault;
	
	private Integer isGround;
	
	private BigDecimal amount = BigDecimal.valueOf(1);
	
	private Integer unitNum;
	
	private String skuImage;

	
	private List<UnitVo> unitList;

    /*private List<ProductSkuImgEntity> imgList ; //SKU图册

	public List<ProductSkuImgEntity> getImgList() {
		return imgList;
	}

	public void setImgList(List<ProductSkuImgEntity> imgList) {
		this.imgList = imgList;
	}*/

	public Long getId() {
		return id;
	}

	public BigDecimal getShowPrice() {
		return showPrice;
	}

	public void setShowPrice(BigDecimal showPrice) {
		this.showPrice = showPrice;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getUnitNum() {
		return unitNum;
	}

	public void setUnitNum(Integer unitNum) {
		this.unitNum = unitNum;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getProductNumber() {
		return productNumber;
	}

	public void setProductNumber(String productNumber) {
		this.productNumber = productNumber;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public BigDecimal getStock() {
		return stock;
	}

	public void setStock(BigDecimal stock) {
		this.stock = stock;
	}

	public BigDecimal getProductPrice() {
		return productPrice;
	}

	public void setProductPrice(BigDecimal productPrice) {
		this.productPrice = productPrice;
	}

	public BigDecimal getSpecialPrice() {
		return specialPrice;
	}

	public void setSpecialPrice(BigDecimal specialPrice) {
		this.specialPrice = specialPrice;
	}

	public Long getUnitId() {
		return unitId;
	}

	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	public Integer getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}

	public Integer getIsGround() {
		return isGround;
	}

	public void setIsGround(Integer isGround) {
		this.isGround = isGround;
	}

	public List<UnitVo> getUnitList() {
		return unitList;
	}

	public void setUnitList(List<UnitVo> unitList) {
		this.unitList = unitList;
	}

	public String getSkuImage() {
		return skuImage;
	}

	public void setSkuImage(String skuImage) {
		this.skuImage = skuImage;
	}

	public String getStockContent() {
		return stockContent;
	}

	public void setStockContent(String stockContent) {
		this.stockContent = stockContent;
	}

}
